package com.bbcare.followup.plat.store.ibatis;

import com.bbcare.followup.plat.entity.FuReferralRecord;

import java.util.List;
import java.util.Map;

/**
 * @Title		FuReferralRecordDao.java
 * @Package		com.bbcare.followup.plat.store.ibatis
 * @Description	患者转诊-申请记录表dao
 * @Author		<a href="mailto:jiangqian_java@163.com">jiang</a>
 * @Date		2022/9/16
 * @Version		V1.0 
 * @Copyright	(c) Shanghai BBcare Medical Equipment Co.,Ltd.
 */
public interface FuReferralRecordDao {

    /**
     * 新增
     * @author jiangq
     * @date 2022/09/16
     **/
    int insert(FuReferralRecord fuReferralRecord);

    /**
     * 刪除
     * @author jiangq
     * @date 2022/09/16
     **/
    int delete(int id);

    /**
     * 更新
     * @author jiangq
     * @date 2022/09/16
     **/
    int update(FuReferralRecord fuReferralRecord);

    /**
     * 查询 根据主键 id 查询
     * @author jiangq
     * @date 2022/09/16
     **/
    FuReferralRecord load(String id);

    /**
     * 查询 分页查询
     * @author jiangq
     * @date 2022/09/16
     **/
    List<Map<String, Object>> pageList(Map<String, Object> paramMap);

    /**
     * 查询 分页查询 count
     * @author jiangq
     * @date 2022/09/16
     **/
    int pageListCount(Map<String, Object> paramMap);

    /**
     * 查询本周人数
     * @author jiangq
     * @date 2022/09/16
     **/
    int staticThisWeekCount(Map<String, Object> paramMap);

    /**
     * 年 月度人数统计
     * @author jiangq
     * @date 2022/09/16
     **/
    List<Map<String, Object>> staticYearAndMonthCount(Map<String, Object> paramMap);

    /**
     * 转诊 状态人数占比统计
     * @author jiangq
     * @date 2022/09/16
     **/
    List<Map<String, Object>> staticUserStatusPercent(Map<String, Object> paramMap);

    List<Map<String, Object>> selectTenant(Map<String, Object> paramMap) throws Exception;

    List<Map<String, Object>> getReturnReferral(Map<String, Object> paramMap) throws Exception;
}
